﻿<%@ Page Title="" Language="C#" MasterPageFile="~/admin/admin.master" AutoEventWireup="true" CodeFile="Email.aspx.cs" Inherits="admin_Settings_Email" %>
<%@ Register TagName="TabMenu" TagPrefix="menu" Src="~/admin/Setting/Menu.ascx" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">

	<div class="content-box-outer">
		<div class="content-box-right">
			<menu:TabMenu ID="TabMenu" runat="server" />
		</div>
		<div class="content-box-left">
        <h1>Email</h1>

                <ul class="fl leftaligned">
                    <li>
                        <label class="lbl">Email</label>
                        <input type="text" class="w300" value="<%=Setting.String("SMTP_EMAIL") %>"  style="width:300px" id="txtEmail" onblur="$.dalatcooking.jsonSettingUpdate('SMTP_EMAIL', this.value);"/>
                    </li>
                    <li>
                        <label class="lbl" >SMTP Server</label>
                      <input type="text" class="w300" value="<%=Setting.String("SMTP_SERVER") %>"  style="width:300px" ID="txtSmtpServer"  onblur="$.dalatcooking.jsonSettingUpdate('SMTP_SERVER', this.value);"/>
                    </li>
                    <li>
                        <label class="lbl">SMTP Port</label>
                       <input type="text" class="number" value="<%=Setting.String("SMTP_PORT") %>"  style="width:40px" id="txtSmtpServerPort" CssClass="number"  onblur="$.dalatcooking.jsonSettingUpdate('SMTP_PORT', this.value);"/>
                        <span class="belowHelp">Port dùng để gửi email</span>
                    </li>
                    <li>
                        <label class="lbl" >SMTP Username</label>
        <input type="text" class="number" value="<%=Setting.String("SMTP_USERNAME") %>" style="width:300px"  id="txtSmtpUsername"  onblur="$.dalatcooking.jsonSettingUpdate('SMTP_USERNAME', this.value);"/>
                    </li>
                    <li>
                        <label class="lbl" >SMTP Password</label>
                        <input type="password" class="w300" value="<%=Setting.String("SMTP_PASSWORD") %>" style="width:300px"  id="txtSmtpPassword"  onblur="$.dalatcooking.jsonSettingUpdate('SMTP_PASSWORD', this.value);"/>
                    </li>
                    <li>
                        <label class="lbl" >Tiêu đề</label>
                         <input type="text" class="w300" value="<%=Setting.String("SMTP_SUBJECT") %>"  style="width:300px" id="txtEmailSubjectPrefix"  onblur="$.dalatcooking.jsonSettingUpdate('SMTP_SUBJECT', this.value);"/>
                    </li>
                    <li>
                        <label class="lbl">Tùy chọn</label>
                        <asp:CheckBox runat="Server" ID="cbEnableSsl" onclick="$.dalatcooking.jsonSettingUpdate('SMTP_SSL', this.checked);" />
                        <label for="<%=cbEnableSsl.ClientID %>">SSL</label>
                    </li>
                    <li>
                        <span class="filler"></span>
                        <asp:CheckBox runat="Server" ID="cbComments" />
                        <label for="<%=cbComments.ClientID %>">Gửi mail khi cho chủ đề</label>
                    </li>
                </ul>
            <div class="action_buttons">
                <input type="button" value="Lưu" id="btnSave" class="btn primary" onclick="return $.dalatcooking.jsonSettingSaveEmail();" />
                
                <input type="button" id="btnTestSmtp" class="btn" value="Gửi thử" onclick="return $.dalatcooking.jsonSettingTestEmail();" />
                <asp:Label runat="Server" ID="lbSmtpStatus" /> <img class="loader2" src="/images/ajax-loader1.gif" alt="loader" />
            </div>
        </div>
    </div>
</asp:Content>

